home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Converting to "FULL" ASCII
- Date: 11 Mar 1996 13:59:41 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4i27odINN3ki@keats.ugrad.cs.ubc.ca>
- References: <4i0prp$tn6@lantana.singnet.com.sg>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4i0prp$tn6@lantana.singnet.com.sg>,
- Charles Lai <se7212079@ntuvax.ntu.ac.sg> wrote:
- >Hi... Does anyone know how to convert an integer 0-255 to its extended
- >ASCII representation?
-
- Characters are integral types in C. No conversion is necessary. You do need
- to use unsigned char, because C guarantees a maximum value of only 127 for
- signed characters, but 255 for unsigned, and these are the actual limits on
- many implementations.
-
- >toascii only convert up to 127....
-
- What is "toascii"? This is not a standard defined function. Are you sure we are
- talking about C here?
- --
-
-